record value · System

ValueTuple<T1>

public record value ValueTuple<T1> : IToString, IHashable<ValueTuple<T1>>

1 item in a value: Item1, which can be changed.

Kind
record value
Namespace
System
Assembly
System.Core
Access
public, record
Source file
Tuples.ant

Type parameters

NameConstraints
T1any type

Inheritance

Interfaces
IToString IHashable<TSelf>

Constructors

new(T1 Item1)
#

Methods

ToTuple() : Tuple<T1>
#

The same items in a Tuple (a class).

ToString() : str
#
Hash() : u64
#
Equals(ValueTuple<T1> other) : bool
#

Fields

T1 Item1
#

Source

ValueTuple<T1> as Antril, decompiled from its Larva HIR.

System.ValueTuple`1.ant
// System.ValueTuple — System.Core (decompiled from Larva HIR)

into namespace System
{
	/// 1 item in a value: Item1, which can be changed.
	public record value ValueTuple<T1> : IToString, IHashable<ValueTuple<T1>>
	{
		public:
			T1 Item1;

			new(T1 Item1)
			{
				this.Item1 = Item1;
			}

			/// The same items in a Tuple (a class).
			ToTuple() : Tuple<T1> => new Tuple<T1>(Item1);
	}
}
Esc